#include <iostream>

using namespace std;

int main(){

	//variable
	int n; //chieu vao cua tam giac
	int i,j; //bien chay
	//processing
	cout << "Nhap vao chieu cao cua tam giac :";
	cin >> n;
	for (i = 1; i < n; ++i)
	{
		for (j = 1; j <= n + i - 1; ++j)
		{
		    if((j == n - i + 1) || (j == n + i - 1)) cout << "*";
			else cout << " ";
		}
		cout << endl;
	}
	for(i = 1; i <= 2*n - 1; ++i)
		cout << "*";
	cout << endl;
	return 0;
}